﻿using System;
using System.Web;
using Core.Library;
using DataObject;

namespace KMT.Controls.Common
{
    public partial class Header : System.Web.UI.UserControl
    {
        protected string IsLogined = "none";
        protected string IsNoLogin = "block";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (UserHelpers.IsLoggedIn())
            {
                ltCustomer.Text = string.Format("<a href=\"{0}\">Xin chào, {1}</a>", UrlHelpers.CustomerAccount, HttpContext.Current.User.Identity.Name);
                IsLogined = "block";
                IsNoLogin = "none";
            }

            
        }
    }
}